//
//  FlagModel.m
//  PickerView
//
//  Created by cocoazxj@163.com on 15/4/1.
//  Copyright (c) 2015年 handcool. All rights reserved.
//

#import "FlagModel.h"

@implementation FlagModel
+ (instancetype)flagModel:(NSDictionary *)dict
{
    return [[self alloc] initWithDict:dict];
}

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if(self = [super init])
    {
        self.name = dict[@"name"];
        self.icon = dict[@"icon"];
    }
    return self;
}
@end
